package com.huirui.server.pojo.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Schema(description = "订单商品详情响应VO")
public class OrderResponseProductVo {

    @Schema(description = "订单项ID", example = "1001")
    private Long orderItemId;

    @Schema(description = "商品ID", example = "2001")
    private Long productId;

    @Schema(description = "商品名称", example = "华为Mate 60 Pro")
    private String productName;

    @Schema(description = "商品规格名称", example = "12GB+512GB 黑色")
    private String productSpecificationName;

    @Schema(description = "商品规格图片URL", example = "https://example.com/images/huawei-mate60-pro-black.jpg")
    private String productSpecificationImageUrl;

    @Schema(description = "购买数量", example = "2")
    private Long quantity;

    @Schema(description = "单价", example = "6999.00")
    private BigDecimal unitPrice;

}
